<?php
namespace Home\Controller;
use Think\Controller;

class HelloController extends Controller {

	public function hello(){
		exit('Hello,World');
	}

	//前置操作
	public function _before_index(){
        echo 'before<br/>';
    }
    public function index(){
        echo 'index<br/>';
    }
    //后置操作方法
    public function _after_index(){
        echo 'after<br/>';
    }

	public function endDoc(){}
}